package com.xingqing.service;

import com.xingqing.domain.dto.EmpDTO;
import com.xingqing.domain.entity.Emp;
import com.xingqing.domain.vo.EmpVO;
import com.xingqing.domain.vo.PageBean;

import java.util.List;

public interface EmpService {
    
    PageBean<EmpVO> pageWithDept(Integer page, Integer pageSize);
    
    List<EmpVO> listWithDept();
    
    EmpVO getByIdWithDept(Long id);
    
    List<EmpVO> getByDeptIdWithDept(Long deptId);
    
    List<Emp> list();
    
    Emp getById(Long id);
    
    List<Emp> getByDeptId(Long deptId);
    
    void save(Emp emp);
    
    void saveWithWorkExperiences(EmpDTO empDTO);
    
    void updateById(Emp emp);
    
    void deleteById(Long id);
    
    void deleteByDeptId(Long deptId);
}